package org.dromara.business.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.business.domain.UserCollect;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 用户收藏夹视图对象 t_user_collect
 *
 * @author Hao Tong Xue
 * @date 2025-06-16
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = UserCollect.class)
public class UserCollectVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 收藏ID
     */
    @ExcelProperty(value = "收藏ID")
    private Long id;

    /**
     * 收藏夹名称
     */
    @ExcelProperty(value = "收藏夹名称")
    private String collectName;

    /**
     * 是否公开
     */
    @ExcelProperty(value = "是否公开", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "yes_no")
    private Long isPublic;

    /**
     * 皮肤图片
     */
    @ExcelProperty(value = "皮肤图片")
    private Long coverFileId;

    /**
     * 皮肤图片Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "coverFileId")
    private String coverFileIdUrl;

    /**
     * 收藏数量
     */
    private Integer contentCount;


    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
